package com.intech.android.demo.cms.beans;

import com.intech.android.demo.cms.bo.*;

import java.util.Set;

public class BeanUtil
{
    public static AudioContent createAudioContent(String name, String description, String budget, String payment, Category category, Set<Group> groups, Set<Region> regions, String advertiser, String advertiserSite)
    {
        AudioContent audioContent = new AudioContent();
        audioContent.setName(name);
        audioContent.setDescription(description);
        audioContent.setBudget(Double.valueOf(budget));
        audioContent.setPayment(Double.valueOf(payment));
        audioContent.setCategory(category);
        audioContent.setGroups(groups);
        audioContent.setRegions(regions);
        audioContent.setAdvertiser(advertiser);
        audioContent.setAdvertiserSite(advertiserSite);
        return audioContent;

    }

    public static AudioContent updateAudioContent(AudioContent audioContent, String name, String description, String budget, String payment, Category category, Set<Group> groups, Set<Region> regions, String advertiser, String advertiserSite)
    {
        audioContent.setName(name);
        audioContent.setDescription(description);
        audioContent.setBudget(Double.valueOf(budget));
        audioContent.setPayment(Double.valueOf(payment));
        audioContent.setCategory(category);
        audioContent.setGroups(groups);
        audioContent.setRegions(regions);
        audioContent.setAdvertiser(advertiser);
        audioContent.setAdvertiserSite(advertiserSite);
        return audioContent;

    }

    public static VideoContent createVideoContent(String name, String description, String budget, String payment, Category category, Set<Group> groups, Set<Region> regions, String advertiser, String advertiserSite)
    {
        VideoContent videoContent = new VideoContent();
        videoContent.setName(name);
        videoContent.setDescription(description);
        videoContent.setBudget(Double.valueOf(budget));
        videoContent.setPayment(Double.valueOf(payment));
        videoContent.setCategory(category);
        videoContent.setGroups(groups);
        videoContent.setRegions(regions);
        videoContent.setAdvertiser(advertiser);
        videoContent.setAdvertiserSite(advertiserSite);
        return videoContent;

    }

    public static VideoContent updateVideoContent(VideoContent videoContent, String name, String description, String budget, String payment, Category category, Set<Group> groups, Set<Region> regions, String advertiser, String advertiserSite)
    {
        videoContent.setName(name);
        videoContent.setDescription(description);
        videoContent.setBudget(Double.valueOf(budget));
        videoContent.setPayment(Double.valueOf(payment));
        videoContent.setCategory(category);
        videoContent.setGroups(groups);
        videoContent.setRegions(regions);
        videoContent.setAdvertiser(advertiser);
        videoContent.setAdvertiserSite(advertiserSite);
        return videoContent;

    }


    public static GraphicContent createGraphicContent(String name, String description, String budget, String payment, Category category, Set<Group> groups, Set<Region> regions, String advertiser, String advertiserSite, Long delayTime)
    {
        GraphicContent graphicContent = new GraphicContent();
        graphicContent.setName(name);
        graphicContent.setDescription(description);
        graphicContent.setBudget(Double.valueOf(budget));
        graphicContent.setPayment(Double.valueOf(payment));
        graphicContent.setCategory(category);
        graphicContent.setGroups(groups);
        graphicContent.setRegions(regions);
        graphicContent.setAdvertiser(advertiser);
        graphicContent.setAdvertiserSite(advertiserSite);
        graphicContent.setDelayTime(delayTime);
        return graphicContent;

    }

    public static GraphicContent updateGraphicContent(GraphicContent graphicContent, String name, String description, String budget, String payment, Category category, Set<Group> groups, Set<Region> regions, String advertiser, String advertiserSite, Long delayTime)
    {
        graphicContent.setName(name);
        graphicContent.setDescription(description);
        graphicContent.setBudget(Double.valueOf(budget));
        graphicContent.setPayment(Double.valueOf(payment));
        graphicContent.setCategory(category);
        graphicContent.setGroups(groups);
        graphicContent.setRegions(regions);
        graphicContent.setAdvertiser(advertiser);
        graphicContent.setAdvertiserSite(advertiserSite);
        graphicContent.setDelayTime(delayTime);
        return graphicContent;

    }

    public static TextContent createTextContent(String name, String description, String budget, String payment, Category category, Set<Group> groups, Set<Region> regions, String advertiser, String advertiserSite, Long delayTime, String uploadedTextContent)
    {
        TextContent textContent = new TextContent();
        textContent.setName(name);
        textContent.setDescription(description);
        textContent.setBudget(Double.valueOf(budget));
        textContent.setPayment(Double.valueOf(payment));
        textContent.setCategory(category);
        textContent.setGroups(groups);
        textContent.setRegions(regions);
        textContent.setAdvertiser(advertiser);
        textContent.setAdvertiserSite(advertiserSite);
        textContent.setDelayTime(delayTime);
        textContent.setContent(uploadedTextContent);
        return textContent;

    }

    public static TextContent updateTextContent(TextContent textContent, String name, String description, String budget, String payment, Category category, Set<Group> groups, Set<Region> regions, String advertiser, String advertiserSite, Long delayTime, String uploadedTextContent)
    {
        textContent.setName(name);
        textContent.setDescription(description);
        textContent.setBudget(Double.valueOf(budget));
        textContent.setPayment(Double.valueOf(payment));
        textContent.setCategory(category);
        textContent.setGroups(groups);
        textContent.setRegions(regions);
        textContent.setAdvertiser(advertiser);
        textContent.setAdvertiserSite(advertiserSite);
        textContent.setDelayTime(delayTime);
        textContent.setContent(uploadedTextContent);
        return textContent;

    }

}
